package com.baizhiedu.mybatis;

import java.io.Serializable;

/**
 * Mybatis开发步骤
 *  1.实体
 *  2.实体别名
 *  3.表
 *  4.创建DAO接口
 *  5.实现Mapper文件
 *  6.注册Mapper文件
 *  7.MybatisAPI调用
 */
public class User implements Serializable {
    private Integer id;
    private String name;
    private String password;

    public User() {
    }

    public User(Integer id, String name, String password) {
        this.id = id;
        this.name = name;
        this.password = password;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
